/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ import net.minecraft.util.math.BlockPos;
/*     */ import net.minecraft.util.math.MathHelper;
/*     */ 
/*     */ public class ffa {
/*   9 */   private final EntityPlayer t = (EntityPlayer)(Minecraft.func_71410_x()).field_71439_g;
/*     */ 
/*     */   
/*     */   private float d;
/*     */ 
/*     */   
/*     */   private float z;
/*     */ 
/*     */   
/*     */   private boolean i;
/*     */ 
/*     */   
/*     */   private double w;
/*     */ 
/*     */   
/*     */   private double q;
/*     */   
/*     */   private double g;
/*     */ 
/*     */   
/*     */   public void v(BlockPos blockPos, float f1, float f2) {
/*  30 */     this.w = blockPos.func_177958_n();
/*  31 */     this.q = blockPos.func_177956_o();
/*  32 */     this.g = blockPos.func_177952_p();
/*  33 */     this.d = f1;
/*  34 */     this.z = f2;
/*  35 */     this.i = true;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(double d1, double d2, double d3, float f1, float f2) {
/*  42 */     this.w = d1;
/*  43 */     this.q = d2;
/*  44 */     this.g = d3;
/*  45 */     this.d = f1;
/*  46 */     this.z = f2;
/*  47 */     this.i = true;
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v() {
/*  56 */     if (this.i) {
/*  57 */       this.i = false;
/*  58 */       double d1 = this.w - this.t.field_70165_t;
/*  59 */       double d2 = this.q - this.t.field_70163_u + this.t.func_70047_e();
/*  60 */       double d3 = this.g - this.t.field_70161_v;
/*  61 */       double d4 = MathHelper.func_76133_a(d1 * d1 + d3 * d3);
/*  62 */       float f1 = (float)(MathHelper.func_181159_b(d3, d1) * 57.29577951308232D) - 90.0F;
/*  63 */       float f2 = (float)-(MathHelper.func_181159_b(d2, d4) * 57.29577951308232D);
/*  64 */       this.t.field_70125_A = v(this.t.field_70125_A, f2, this.z);
/*  65 */       this.t.field_70759_as = v(this.t.field_70759_as, f1, this.d);
/*     */     } else {
/*  67 */       this.t.field_70759_as = v(this.t.field_70759_as, this.t.field_70761_aq, 10.0F);
/*     */     } 
/*     */     
/*  70 */     float f = MathHelper.func_76142_g(this.t.field_70759_as - this.t.field_70761_aq);
/*     */ 
/*     */     
/*  73 */     if (f < -75.0F) {
/*  74 */       this.t.field_70759_as = this.t.field_70761_aq - 75.0F;
/*     */     }
/*     */     
/*  77 */     if (f > 75.0F) {
/*  78 */       this.t.field_70759_as = this.t.field_70761_aq + 75.0F;
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean v() {
/*  98 */     return this.i;
/*     */   }
/*     */   
/*     */   public double h() {
/* 102 */     return this.w;
/*     */   }
/*     */   
/*     */   public double z() {
/* 106 */     return this.q;
/*     */   }
/*     */   
/*     */   public double v() {
/* 110 */     return this.g;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ffa.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */